<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Bootstrap Dashboard by Bootstrapious.com</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="robots" content="all,follow">
    <!-- Google fonts - Roboto -->
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700">
    <!-- Choices CSS-->
    <link rel="stylesheet" href="../vendor/choices.js/public/assets/styles/choices.min.css">
    <!-- Custom Scrollbar-->
    <link rel="stylesheet" href="../vendor/overlayscrollbars/css/OverlayScrollbars.min.css">
    <!-- theme stylesheet-->
    <link rel="stylesheet" href="../css/style.default.css" id="theme-stylesheet">
    <!-- Custom stylesheet - for your changes-->
    <link rel="stylesheet" href="../css/custom.css">
    <!-- Favicon-->
    <link rel="shortcut icon" href="../img/favicon.ico">
    <!-- Tweaks for older IEs--><!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script><![endif]-->
  </head>
  <body>
  <!--    页内导航-->
  <div class="bg-gray-200 text-sm">
    <div class="container-fluid">
      <nav aria-label="breadcrumb">
        <ol class="breadcrumb mb-0 py-3">
          <li class="breadcrumb-item"><a class="fw-light" href="admin/index.html">Home</a></li>
          <li class="breadcrumb-item active fw-light" aria-current="page">轮播管理  </li>
        </ol>
      </nav>
    </div>
  </div>
  <!--页内导航 end-->
  <!-- 页面主要内容 -->
  <div class="container-fluid">
    <div class="row">
      <div class="col">
        <div class="card">
          <div class="card-header">
            <h3 class="h4 mb-0">首页轮播管理</h3>
          </div>
          <div class="card-body">
            <div class="table-responsive">
              <table class="table text-sm mb-0 table-striped table-hover">
                <thead>
                  <tr class="align-middle text-center">
                    <th>#</th>
                    <th>图片预览</th>
                    <th>跳转链接</th>
                    <th>order</th>
                    <th>操作</th>
                  </tr>
                </thead>
                <tbody>
                  <tr class="align-middle text-center">
                    <th scope="row">1</th>
                    <td>
                      <img src="../img/photos/paul-morris-116514-unsplash.jpg" width="200px" height="120px" alt="">
                    </td>
                    <td>https://localhost:8443/bookstore/find.do?type=java</td>
                    <td>1</td>
                    <td>
                      <button type="button" class="btn btn-outline-danger">删除</button>
                      <button type="button" class="btn btn-outline-success">编辑</button>
                    </td>
                  </tr>
                  <tr class="align-middle text-center">
                    <th scope="row">2</th>
                    <td>
                      <img src="../img/photos/paul-morris-116514-unsplash.jpg" width="200px" height="120px" alt="">
                    </td>
                    <td>https://localhost:8443/bookstore/find.do?type=java</td>
                    <td>2</td>
                    <td>
                      <button type="button" class="btn btn-outline-danger">删除</button>
                      <button type="button" class="btn btn-outline-success">编辑</button>
                    </td>
                  </tr>
                  <tr class="align-middle text-center">
                    <th scope="row">3</th>
                    <td>
                      <img src="../img/photos/paul-morris-116514-unsplash.jpg" width="200px" height="120px" alt="">
                    </td>
                    <td>https://localhost:8443/bookstore/find.do?type=java</td>
                    <td>3</td>
                    <td>
                      <button type="button" class="btn btn-outline-danger">删除</button>
                      <button type="button" class="btn btn-outline-success">编辑</button>
                    </td>
                  </tr>
                </tbody>
              </table>
            </div>
          </div> 
        </div>
      </div>
    </div>
    <div class="row">
      <div class="col px-5">
        <button type="button" class="btn btn-success" data-bs-toggle="modal" data-bs-target="#addBanner">添加</button>
      </div>
    </div>
  </div>
  
  <!-- 页面主要内容 end -->
  <!--  新增banner模态框-->
<div class="modal fade " id="addBanner" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-dialog-centered">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">新增Banner</h5>
        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
      </div>
      <div class="modal-body">
        <form>
          <div class="mb-3">
            <label for="banner-img" class="col-form-label">Banner图片</label>
            <input class="form-control" id="banner-img" type="file">
          </div>
          <div class="mb-3">
            <label for="banner-link" class="col-form-label">超链接</label>
            <input type="text" class="form-control" id="banner-link">
          </div>
          <div class="mb-3">
            <label for="banner-order" class="col-form-label">order</label>
            <input type="text" class="form-control" id="banner-order">
          </div>
        </form>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">关闭</button>
        <button type="button" class="btn btn-primary">新增</button>
      </div>
    </div>
  </div>
</div>
<!-- 新增banner模态框 end-->



    <!-- JavaScript files-->
    <script src="../vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
    <script src="../vendor/just-validate/js/just-validate.min.js"></script>
    <script src="../vendor/overlayscrollbars/js/OverlayScrollbars.min.js"></script>
    <!-- Main File-->
    <script src="../js/front.js"></script>
    <script>
      // ------------------------------------------------------- //
      //   Inject SVG Sprite - 
      //   see more here 
      //   https://css-tricks.com/ajaxing-svg-sprite/
      // ------------------------------------------------------ //
      function injectSvgSprite(path) {
      
          var ajax = new XMLHttpRequest();
          ajax.open("GET", path, true);
          ajax.send();
          ajax.onload = function(e) {
          var div = document.createElement("div");
          div.className = 'd-none';
          div.innerHTML = ajax.responseText;
          document.body.insertBefore(div, document.body.childNodes[0]);
          }
      }
      // this is set to BootstrapTemple website as you cannot 
      // inject local SVG sprite (using only 'icons/orion-svg-sprite.svg' path)
      // while using file:// protocol
      // pls don't forget to change to your domain :)
      injectSvgSprite('https://bootstraptemple.com/files/icons/orion-svg-sprite.svg'); 
      
      
    </script>
    <!-- FontAwesome CSS - loading as last, so it doesn't block rendering-->
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.1/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
  </body>
</html>